#pragma once

#include "draw_inc.h"
#include "span.h"

typedef struct tag_scanline_16
{
	int_16 y;
	int_16 index;
	span16 * spans;
	int_16 count;

	span16 * last;
}scanline16;


scanline16 * scanline16_create();
void scanline16_destroy(scanline16 * pscl);

span16 * scanline16_get_last_span(scanline16 * pscl, int_16 x);
void scanline16_add_pixel(scanline16 * pscl, int_16 x, int_16 y, uint_8 cover);


